package com.mlt.back.service.impl;

import com.mlt.back.beans.Role;
import com.mlt.back.dao.RoleDao;
import com.mlt.back.dao.impl.RoleDaoImpl;
import com.mlt.back.service.RoleService;

import java.util.List;

public class RoleServiceImpl implements RoleService {
    private RoleDao roleDao=new RoleDaoImpl();

    @Override
    public List<Role> selectAll() {
        List<Role> roleList=roleDao.selectAll();
        return roleList;
    }

    @Override
    public void del(int i) {
        roleDao.del(i);
    }
}
